.class final Lcom/burstly/lib/feature/ResourceManager;
.super Ljava/lang/Object;
.source "ResourceManager.java"

# interfaces
.implements Lcom/h2/org/springframework/beans/factory/IResourceManager;


# instance fields
.field private final mAssetManager:Landroid/content/res/AssetManager;


# direct methods
.method constructor <init>(Landroid/content/res/AssetManager;)V
    .locals 0
    .parameter "assetManager"

    .prologue
    .line 45
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 46
    iput-object p1, p0, Lcom/burstly/lib/feature/ResourceManager;->mAssetManager:Landroid/content/res/AssetManager;

    .line 47
    return-void
.end method


# virtual methods
.method public getReader(Ljava/io/File;)Ljava/io/Reader;
    .locals 2
    .parameter "file"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 62
    new-instance v0, Ljava/io/InputStreamReader;

    invoke-virtual {p0, p1}, Lcom/burstly/lib/feature/ResourceManager;->getResource(Ljava/io/File;)Ljava/io/InputStream;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;)V

    return-object v0
.end method

.method public getResource(Ljava/io/File;)Ljava/io/InputStream;
    .locals 2
    .parameter "file"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 51
    invoke-virtual {p1}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v0

    .line 52
    .local v0, path:Ljava/lang/String;
    iget-object v1, p0, Lcom/burstly/lib/feature/ResourceManager;->mAssetManager:Landroid/content/res/AssetManager;

    invoke-virtual {v1, v0}, Landroid/content/res/AssetManager;->open(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object v1

    return-object v1
.end method

.method public getResource(Ljava/lang/String;)Ljava/io/InputStream;
    .locals 1
    .parameter "file"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 57
    iget-object v0, p0, Lcom/burstly/lib/feature/ResourceManager;->mAssetManager:Landroid/content/res/AssetManager;

    invoke-virtual {v0, p1}, Landroid/content/res/AssetManager;->open(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object v0

    return-object v0
.end method
